<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Welcome</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f0f0f0;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        .container {
            text-align: center;
            background-color: #fff;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        h1 {
            color: #333;
        }
        p {
            font-size: 18px;
            color: #666;
        }
        .logout-link {
            margin-top: 20px;
            text-decoration: none;
            color: #007bff;
            font-weight: bold;
        }
        .logout-link:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
<div class="container">
    <h1>登录成功-你当前登录的用户信息为</h1>
    <p>名称： ${yonghu.name}</p>
    <p>账号： ${yonghu.account}</p>
    <p>密码： ${yonghu.pwd}</p>
    <p>用户类型： ${yonghu.type==1 ? '用户' :'企业'}</p>
    <a href="<%=request.getContextPath()%>/index.jsp" class="logout-link">退出登录</a>
</div>
</body>
</html>